<?php
/**
 * @author: phongnd
 * 
 *
 */
// 
?>

<?php
global $post;
$images = jamnews_get_images_album(); 
?>
<div class="zoom-section">    	  
        <div class="zoom-small-image">
            <?php list($src) = wp_get_attachment_image_src(get_post_thumbnail_id(),"large"); ?>
				<a href='<?php echo $src; ?>' class = 'cloud-zoom' id='zoom1' rel="adjustX:-10">
					<?php the_post_thumbnail("thumbnail");?>
				</a>
        </div>    
        <div class="zoom-desc">
            <div class="flexslider">
                <ul class="slides">
                    <?php foreach($images as $image){ 
                        list($image_thumb) = wp_get_attachment_image_src($image->id,"thumbnail");
                        list($image_large) = wp_get_attachment_image_src($image->id,"large");
                    ?>
                    <li>
                        <div class="zoom-border">
                            <a href='<?php echo $image_large; ?>' class='cloud-zoom-gallery' title='Red' rel="useZoom: 'zoom1', smallImage: '<?php echo $image_thumb;?>' ">
                                <?php echo wp_get_attachment_image($image->id,"thumbnail",false,"class=zoom-tiny-image image-center&alt={$image->caption}"); ?>
                            </a>
                        </div>
                    </li>
                    <?php } ?>
                    </ul>   
                </div>                         
        </div>
</div>


